package com.techfort.metalrss.core;

import java.util.List;

import com.techfort.rssparser.Message;
import com.techfort.rssparser.RssParser;

public class MetalFeed {
	
	private List<Message> messages;
	private ErrorHandler eh;
	
	public MetalFeed(String url) throws Exception{
		messages = new RssParser(url).parse();
	}

	public List<Message> getMessages() {
		return messages;
	}

	public void setMessages(List<Message> messages) {
		this.messages = messages;
	}




	public ErrorHandler getEh() {
		return eh;
	}




	public void setEh(ErrorHandler eh) {
		this.eh = eh;
	}




	public static interface ErrorHandler{
		
		void handleError();
	}
}
